package com.liyuxiang.yygh.hosp.client;

import com.liyuxiang.yygh.vo.hosp.ScheduleOrderVo;
import com.liyuxiang.yygh.vo.order.SignInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.annotation.Resource;

@FeignClient("service-hosp")
@Resource
public interface HospitalFeignClient {
    /**
     * 根据排班id获取预约下单数据
     *
     * @param scheduleId
     * @return ScheduleOrderVo
     */
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    /**
     * 获取医院签名
     *
     * @param hoscode
     * @return SignInfoVo
     */
    @GetMapping("/api/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    SignInfoVo getSignInfoVo(@PathVariable("hoscode") String hoscode);
}
